From: Maxim Ermilov Date: Sun, 30 Jan 2011 23:15:19 +0000 (+0300) Subject: modalDialog: remove old actions from _actionKeys in setButtons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9140 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0310f07eab6aae46287a2a85e48873f229e85f51;p=gnome-shell.git modalDialog: remove old actions from _actionKeys in setButtons https://bugzilla.gnome.org/show_bug.cgi?id=640781 --- diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index fee62662a..45a1e3c38 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -84,6 +84,8 @@ ModalDialog.prototype = { setButtons: function(buttons) { this._buttonLayout.destroy_children(); + this._actionKeys = {}; + let i = 0; for (let index in buttons) { let buttonInfo = buttons[index];